package com.practice.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.practice.pojo.user.entity.User;
import com.practice.pojo.user.entity.UserData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UUserMapper extends BaseMapper<User> {
    @Select("select * from ydd_user_data where user_id = #{userId}")
    List<UserData> queryById(Long userId);
}
